package com.pm25.common;

import java.util.regex.Pattern;

public class Constants {
	private Constants(){}
	public static final String API_START_SITE = "http://www.pm25.in";
	
	public static final Pattern RESPONSE_ERROR_PATTERN = Pattern.compile("\\{([\"'])error\\1:([\"'])(.*?)\\2}");
	public static final int RESPONSE_ERROR_PATTERN_GROUP = 3 ;
	
	public static final String GSON_DATE_PATTERN = "yyyy-MM-dd'T'HH:mm:ss'Z'";
	
	public static final String RESPONSE_ERROR_CONTEXT_IO_EXCEPTION = "{\"error\":\"http请求IO异常\"}";
	
	public static final int HTTP_CLIENT_SOCKET_TIMEOUT = 5000;
	public static final int HTTP_CLIENT_CONNECT_TIMEOUT = 5000;
	public static final int HTTP_CLIENT_CONNECTION_REQUEST_TIMEOUT = 5000;

}
